/* -*- mode: c++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*- */

#ifndef _RANDOMHELPER_H_
#define _RANDOMHELPER_H_

#include <string>

enum {
    RD_ALL   = 0,
    RD_ALPHA,
    RD_UPPER,
    RD_LOWER,
    RD_DIGIG,
    RD_HEX,
    RD_ALPHA_DIGIG,
};

extern char rd_get_char(int falgs = 0);

extern int rd_get(int min, int max);

extern void rd_get_str(int min, int max, std::string& res, int flags = 0);

#endif /* _RANDOMHELPER_H_ */
